package models

type Article2TagModel struct {
	TagID     uint `gorm:"primaryKey"`
	ArticleID uint `gorm:"primaryKey"`
	// 以下非表结构
	TagModel     TagModel     `gorm:"foreignKey:TagID"`
	ArticleModel ArticleModel `gorm:"foreignKey:ArticleID"`
}

func (Article2TagModel) TableName() string {
	return "article2_tag"
}
